<?php
$this->title = 'Modifier un Grand-Prix';
$this->headTitle($this->title);
echo $this->partial('partial/menucrudgrandprix.phtml');
echo "<h1>Modifier un Grand-Prix</h1>";
if($this->form)
{
	$this->form->setAction($this->url());
	echo $this->form;
}
else
{
	echo "<ul class='listecentre'>";
	foreach($this->grandprix as $gp)
	{
					echo "<li><a href=\"".$this->url(array('id'=>$gp->getGpNum()),'updategrandprix')."\">".$gp->getGpNom()."</a><img src=\"".$this->url(array('path'=>urlencode($this->serverUrl().$this->baseUrl()."/images/pays/".$gp->getCircuit()->getPays()->getPayAdrDrap()),'width'=>32,'height'=>32),'thumb')."\" alt=\"".$gp->getCircuit()->getPays()->getPayNom()."\"/></li>";
	}
	echo "</ul>";
}
